#!/bin/sh
export NODE_HOME=/root/.nvm/versions/node/v10.16.0
export PATH=$NODE_HOME/bin:$PATH
export NODE_PATH=$NODE_HOME/lib/node_modules:$PATH

buildCmd=$1

cd ${WORKSPACE} && sudo npm install
cd ${WORKSPACE} && npm run ${buildCmd}
